Technical Q&A DV37
Driver Gestalt & Icon Services


Q: My driver supports Driver Gestalt’s kdgMediaIconSuite selector and returns an icon. When Foreign File Access has mounted the media, I get the icon my driver returns instead of the one that FFA should show. What can I do to correct this?

A: Unfortunately, the answer is "not a lot."

The first time Icon Services encounters your device, it tries to figure out the best way to get an icon for your drive. It searches for icons in the following order:

  1. Use Driver Gestalt (with the kdgMediaIconSuite selector)
  2. Use FSM for an icon family
  3. Use FSM for an icon suite
  4. Use a black and white icon
  5. Use a generic icon

From this search algorithm, it is obvious that the only way to get Icon Services to use the icons supplied by FFA is to not return an icon from the Driver Gestalt kdgMediaIconSuite call.

This has been filed as bug 2366114 with the suggestion that FSM be called requesting an icon before Driver Gestalt is called for an icon.

[Oct 05 1999]


Developer Documentation | Technical Notes | Development Kits | Sample Code